package edu.hhu.basic.service;

import java.util.List;

import com.jfinal.plugin.activerecord.Page;
import com.jfinal.plugin.activerecord.Record;

import edu.hhu.basic.dao.BasicDao;
import edu.hhu.basic.utils.FormatUtils;


public class BasicService {
	BasicDao dao = new BasicDao();
    public Page<Record> ColumnService(String tableName,int page,String para){
    	  Page<Record> list = dao.Column(tableName, page, para);
    	  FormatUtils.DealNull(list.getList());
		return list;
    }
    public List<Record> BQueryService(String para,String table){
    	List<Record> list = dao.BasicQuery(para, table);
    	FormatUtils.DealNull(list);
    	return list;
    }
    public Page<Record> AdvanceQueryService(String para,int pageno){
    	Page<Record> page = dao.AdvanceQuery(para, pageno);
    	FormatUtils.DealNull(page.getList());
    	return page;
    }
    public List<Record> AdvanceQueryService1(String para){
    	List<Record> list = dao.AdvanceQuery1(para);
    	FormatUtils.DealNull(list);
    	return list;
    }
    
}
